extends "ExecuterFather.gd"

var VE
var point
var wait=false

func play():
	var ve=load("res://VisualEffects/"+VE+".tscn").instance()
	Global.Battle.add_child(ve)
	var p=Global.Battle.points.get_node(point)
	ve.position=p.position
	if wait:
		ve.connect("complete",self,"onComplete",[],4)
	else:
		emit_signal("complete")
	ve.play()
